//
//  BLLocalize.h
//  Benz.L
//
//  Created by Benz.L on 23/08/2018.
//  Copyright © 2018 BENZL. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NSString * BLLocalizeLanguage NS_STRING_ENUM;
FOUNDATION_EXPORT BLLocalizeLanguage const BLLocalizeLanguageEnglish;
FOUNDATION_EXPORT BLLocalizeLanguage const BLLocalizeLanguageChineseHans;
FOUNDATION_EXPORT BLLocalizeLanguage const BLLocalizeLanguageChineseHant;


@interface BLLocalize : NSObject
@property(nonatomic, readonly) BLLocalizeLanguage language;

+ (instancetype)localize;
- (void)setLanguage:(BLLocalizeLanguage)language;

- (NSString *)localizedStringForKey:(NSString *)key;

@end


#define BLLocalizeKey(key) [BLLocalize.localize localizedStringForKey:(key)]
